<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var srt=''
    var str='1234567890asdasdasdaweasdhthasdaw'
    for(i=0;i<4;i++){
        srt=str[Math.floor(Math.random()*(str.length-1-0+1)+1)]
    }
    alert(srt)
    
</script>